#ifndef T_GRIDSCENE_H
#define T_GRIDSCENE_H
#include <QGraphicsScene>

class T_GridScene : public QGraphicsScene {
    Q_OBJECT
public:
    explicit T_GridScene(QObject *parent = nullptr);
    ~T_GridScene();

    bool gridVisible() const { return mGridVisible; }
    void setGridVisible(bool gridVisible);

protected:
    void drawBackground(QPainter *painter, const QRectF &rect) override;

private:
    bool mGridVisible;
    QColor mGridColor;
    int mGridSize;
};
#endif // T_GRIDSCENE_H